package org.jeecg.modules.health_records.health_anal.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.health_records.health_anal.entity.HealthAnalRectumInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 现病史-体格检查-肛门与直肠检查
 * @Author: jeecg-boot
 * @Date:   2025-06-25
 * @Version: V1.0
 */
public interface HealthAnalRectumInfoMapper extends BaseMapper<HealthAnalRectumInfo> {
    /**按recordid查询**/
    List<HealthAnalRectumInfo> queryByRecordId(@Param("recordID") Long recordID, @Param("idNumber") String idNumber);
    /**电子病历信息查询接口（查询时间最新的那条数据）--按recordid查询**/
    List<HealthAnalRectumInfo> queryElecRecord(@Param("recordID") Long recordID, @Param("idNumber") String idNumber);

    /**新规则查询当下时间往前12个月的就诊数据作为电子病历数据**/
    List<HealthAnalRectumInfo>  newQueryElecRecord(@Param("recordID") Long recordID, @Param("seeId") String seeId, @Param("idNumber") String idNumber);
    /**新规则：除去当下时间往前12个月的就诊数据，剩下的数据为既往病历数据**/
    List<HealthAnalRectumInfo>  newQueryPastRecord(@Param("recordID") Long recordID, @Param("seeId") String seeId, @Param("idNumber") String idNumber);



}
